<template>
  <h2>我是 Home 的内容</h2>
</template>

<script>
  export default {
    name: 'Home',
    beforeDestroy() {
      console.log('Home 组件即将被销毁')
    },
    mounted() {
      console.log('Home 组件被创建了')
    }
  }
</script>